Pinned frames: anchor a set to the raid/party frames#185
Open
Krathe82 wants to merge 1 commit into
Open
Conversation
Pinned sets could only be placed freely on the screen, so they drifted out of alignment whenever the raid/party frames moved, resized, or re-centred on a roster change. Add an "Anchor To Frames" option to the pinned position panel. - set.position.anchorTo (default SCREEN = existing UIParent placement). FRAMES_* values glue the set's growth corner to that corner of the mode's frames container, with X/Y as a fine offset; the static SetPoint means the set tracks the frames automatically (incl. in combat — no per-frame reposition). - PositionPinnedContainer resolves the raid/party container (test variant while test mode is active, matching what's on screen) and falls back to screen if it doesn't exist. anchorTo is preserved through both drag handlers and mirrored to _realRaidDB so raid-set auto-layout overlays keep it. - Position panel: a pinned-only "Anchor To Raid/Party Frames" dropdown (9 corners + Screen). Switching anchor mode resets the offset to 0 so the set lands at the chosen reference instead of being flung off-screen by an offset that meant something different in the other mode. Panel grows in pinned mode to give the dropdown its own band.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pinned sets could only be placed freely on screen, so they drifted out of alignment whenever the raid/party frames moved, resized, or re-centred on a roster change. This adds an Anchor To Frames option to the pinned position panel so a set can pin to the raid/party frames and stay aligned with them.
How to use
Unlock your frames and click a pinned set's drag handle → the position panel gains an Anchor To Raid Frames / Anchor To Party Frames dropdown (named for the set's mode). Pick a corner — Top Left, Top, Top Right, Left, Center, Right, Bottom Left, Bottom, Bottom Right — and the set pins to that corner of the frames container; the X / Y nudge becomes a fine offset from there. Screen (Free) (default) keeps the existing free placement.
Changes
set.position.anchorTo(defaultSCREEN= currentUIParentplacement).FRAMES_*values glue the set's growth corner to that corner of the mode's frames container, X/Y as a fine offset. It's a staticSetPoint, so the set tracks the frames automatically — across roster changes, the centre-alignment shift, and in combat (no per-frame repositioning).PositionPinnedContainerresolves the raid vs party container (the test variant while test mode is active, so the preview matches what's on screen) and falls back to screen if the target doesn't exist.anchorTois preserved through both the live and test drag handlers and mirrored to_realRaidDBso raid-set auto-layout overlays keep it.Notes
anchorTodefaults toSCREEN(no migration needed).